﻿using GWB.Application.System.TenantManage.Dtos;
using GWB.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GWB.Application.System.TenantManage.TenantService
{
    /// <summary>
    /// 租户
    /// </summary>
   public interface ITenantService
    {
        /// <summary>
        ///新增
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<Result<TenantOutDto>> Add(TenantCreateOrUpdateInputDto inputDto);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<bool> Update(TenantCreateOrUpdateInputDto inputDto);



        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<bool> Delete(List<long> ids);


        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<PageResult<TenantOutDto>> Page(TenantPageInputDto inputDto);

        /// <summary>
        /// 编辑租户菜单
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<bool> EditTenantMenu(TenantMenuEditInputDto inputDto);

        /// <summary>
        /// 获取租户的菜单
        /// </summary>
        /// <param name="tenantId"></param>
        /// <returns></returns>
         Task<List<TenantMenuOutDto>> GetTenantMenus(long tenantId);
    }
}
